package com.flatfish.acvsystem.vo;

import com.flatfish.acvsystem.model.ACVApkAuthEntity;


public class ACVApkAuthVO {
	
	/**
	 * id
	 */
	private Integer id;
	
	/**
	 * apk文件名
	 */
	private String name;
	
	/**
	 * apk的URL
	 */
	private String url;
	
	/**
	 * apk认证状态
	 */
	private Integer authState;
	
	/**
	 * 哈希值
	 */
	private String hash;
	
	/**
	 * 包名
	 */
	private String packageId;
	
	/**
	 * 版本号
	 */
	private String version;
	
	/**
	 * 标准的id
	 */
	private String standardApkId;
	
	
	/**
	 * @author  luohuida
	 * @time    Mar 7, 2015
	 * @param en
	 * @Description <b>视图赋值给实体</b>
	 */
	public void setVOToEntity(ACVApkAuthEntity en) {
		en.setName(this.getName());
		en.setAuthState(this.getAuthState());
		en.setHash(this.getHash());
		en.setPackageId(this.getPackageId());
		en.setStandardApkId(this.getStandardApkId());
		en.setUrl(this.getUrl());
		en.setVersion(this.getVersion());
	}
	
	/**
	 * @author  luohuida
	 * @time    Mar 7, 2015
	 * @param en
	 * @Description <b>实体赋值给视图</b>
	 */
	public void setEntityToVO(ACVApkAuthEntity en) {
		this.setName(en.getName());
		this.setAuthState(en.getAuthState());
		this.setHash(en.getHash());
		this.setId(en.getId());
		this.setPackageId(en.getPackageId());
		this.setStandardApkId(en.getStandardApkId());
		this.setUrl(en.getUrl());
		this.setVersion(en.getVersion());
	}


	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * @return the authState
	 */
	public Integer getAuthState() {
		return authState;
	}

	/**
	 * @param authState the authState to set
	 */
	public void setAuthState(Integer authState) {
		this.authState = authState;
	}

	/**
	 * @return the hash
	 */
	public String getHash() {
		return hash;
	}

	/**
	 * @param hash the hash to set
	 */
	public void setHash(String hash) {
		this.hash = hash;
	}

	/**
	 * @return the packageId
	 */
	public String getPackageId() {
		return packageId;
	}

	/**
	 * @param packageId the packageId to set
	 */
	public void setPackageId(String packageId) {
		this.packageId = packageId;
	}

	/**
	 * @return the version
	 */
	public String getVersion() {
		return version;
	}

	/**
	 * @param version the version to set
	 */
	public void setVersion(String version) {
		this.version = version;
	}

	/**
	 * @return the standardApkId
	 */
	public String getStandardApkId() {
		return standardApkId;
	}

	/**
	 * @param standardApkId the standardApkId to set
	 */
	public void setStandardApkId(String standardApkId) {
		this.standardApkId = standardApkId;
	}

	/**
	 * @return
	 * @Description <b></b>
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ACVApkAuthVO [id=" + id + ", name=" + name + ", url=" + url
				+ ", authState=" + authState + ", hash=" + hash
				+ ", packageId=" + packageId + ", version=" + version
				+ ", standardApkId=" + standardApkId + "]";
	}

}
